3.4.53 \(\int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx\) [353]

3.4.53.1 Optimal result
3.4.53.2 Mathematica [A] (verified)
3.4.53.3 Rubi [A] (verified)
3.4.53.4 Maple [F]
3.4.53.5 Fricas [F]
3.4.53.6 Sympy [F(-1)]
3.4.53.7 Maxima [F]
3.4.53.8 Giac [F]
3.4.53.9 Mupad [F(-1)]

3.4.53.1 Optimal result

Integrand size = 33, antiderivative size = 154 \[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\frac {3 C (b \cos (c+d x))^{2/3} \sin (c+d x)}{5 b d}-\frac {3 (5 A+2 C) (b \cos (c+d x))^{2/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {1}{2},\frac {4}{3},\cos ^2(c+d x)\right ) \sin (c+d x)}{10 b d \sqrt {\sin ^2(c+d x)}}-\frac {3 B (b \cos (c+d x))^{5/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right ) \sin (c+d x)}{5 b^2 d \sqrt {\sin ^2(c+d x)}} \]

output
3/5*C*(b*cos(d*x+c))^(2/3)*sin(d*x+c)/b/d-3/10*(5*A+2*C)*(b*cos(d*x+c))^(2 
/3)*hypergeom([1/3, 1/2],[4/3],cos(d*x+c)^2)*sin(d*x+c)/b/d/(sin(d*x+c)^2) 
^(1/2)-3/5*B*(b*cos(d*x+c))^(5/3)*hypergeom([1/2, 5/6],[11/6],cos(d*x+c)^2 
)*sin(d*x+c)/b^2/d/(sin(d*x+c)^2)^(1/2)
 
3.4.53.2 Mathematica [A] (verified)

Time = 0.15 (sec) , antiderivative size = 121, normalized size of antiderivative = 0.79 \[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\frac {-3 (5 A+2 C) \cot (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {1}{2},\frac {4}{3},\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}-6 B \cos (c+d x) \cot (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}+3 C \sin (2 (c+d x))}{10 d \sqrt [3]{b \cos (c+d x)}} \]

input
Integrate[(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2)/(b*Cos[c + d*x])^(1/3),x 
]
 
output
(-3*(5*A + 2*C)*Cot[c + d*x]*Hypergeometric2F1[1/3, 1/2, 4/3, Cos[c + d*x] 
^2]*Sqrt[Sin[c + d*x]^2] - 6*B*Cos[c + d*x]*Cot[c + d*x]*Hypergeometric2F1 
[1/2, 5/6, 11/6, Cos[c + d*x]^2]*Sqrt[Sin[c + d*x]^2] + 3*C*Sin[2*(c + d*x 
)])/(10*d*(b*Cos[c + d*x])^(1/3))
 
3.4.53.3 Rubi [A] (verified)

Time = 0.46 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.02, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {3042, 3502, 27, 3042, 3227, 3042, 3122}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt [3]{b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\)

\(\Big \downarrow \) 3502

\(\displaystyle \frac {3 \int \frac {b (5 A+2 C)+5 b B \cos (c+d x)}{3 \sqrt [3]{b \cos (c+d x)}}dx}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {\int \frac {b (5 A+2 C)+5 b B \cos (c+d x)}{\sqrt [3]{b \cos (c+d x)}}dx}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \frac {b (5 A+2 C)+5 b B \sin \left (c+d x+\frac {\pi }{2}\right )}{\sqrt [3]{b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

\(\Big \downarrow \) 3227

\(\displaystyle \frac {b (5 A+2 C) \int \frac {1}{\sqrt [3]{b \cos (c+d x)}}dx+5 B \int (b \cos (c+d x))^{2/3}dx}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {b (5 A+2 C) \int \frac {1}{\sqrt [3]{b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx+5 B \int \left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{2/3}dx}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

\(\Big \downarrow \) 3122

\(\displaystyle \frac {-\frac {3 (5 A+2 C) \sin (c+d x) (b \cos (c+d x))^{2/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {1}{2},\frac {4}{3},\cos ^2(c+d x)\right )}{2 d \sqrt {\sin ^2(c+d x)}}-\frac {3 B \sin (c+d x) (b \cos (c+d x))^{5/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right )}{b d \sqrt {\sin ^2(c+d x)}}}{5 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{2/3}}{5 b d}\)

input
Int[(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2)/(b*Cos[c + d*x])^(1/3),x]
 
output
(3*C*(b*Cos[c + d*x])^(2/3)*Sin[c + d*x])/(5*b*d) + ((-3*(5*A + 2*C)*(b*Co 
s[c + d*x])^(2/3)*Hypergeometric2F1[1/3, 1/2, 4/3, Cos[c + d*x]^2]*Sin[c + 
 d*x])/(2*d*Sqrt[Sin[c + d*x]^2]) - (3*B*(b*Cos[c + d*x])^(5/3)*Hypergeome 
tric2F1[1/2, 5/6, 11/6, Cos[c + d*x]^2]*Sin[c + d*x])/(b*d*Sqrt[Sin[c + d* 
x]^2]))/(5*b)
 

3.4.53.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3122
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( 
b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]))*Hypergeometric2 
F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2], x] /; FreeQ[{b, c, d, n}, x] 
 &&  !IntegerQ[2*n]
 

rule 3227
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x 
_)]), x_Symbol] :> Simp[c   Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b   Int 
[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
 

rule 3502
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) 
+ (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co 
s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m 
+ 2))   Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m 
 + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] 
 &&  !LtQ[m, -1]
 
3.4.53.4 Maple [F]

\[\int \frac {A +B \cos \left (d x +c \right )+C \left (\cos ^{2}\left (d x +c \right )\right )}{\left (\cos \left (d x +c \right ) b \right )^{\frac {1}{3}}}d x\]

input
int((A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(cos(d*x+c)*b)^(1/3),x)
 
output
int((A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(cos(d*x+c)*b)^(1/3),x)
 
3.4.53.5 Fricas [F]

\[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\int { \frac {C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {1}{3}}} \,d x } \]

input
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^(1/3),x, algorith 
m="fricas")
 
output
integral((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3)/(b 
*cos(d*x + c)), x)
 
3.4.53.6 Sympy [F(-1)]

Timed out. \[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\text {Timed out} \]

input
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)**2)/(b*cos(d*x+c))**(1/3),x)
 
output
Timed out
 
3.4.53.7 Maxima [F]

\[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\int { \frac {C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {1}{3}}} \,d x } \]

input
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^(1/3),x, algorith 
m="maxima")
 
output
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)/(b*cos(d*x + c))^(1/3), 
x)
 
3.4.53.8 Giac [F]

\[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\int { \frac {C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {1}{3}}} \,d x } \]

input
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^(1/3),x, algorith 
m="giac")
 
output
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)/(b*cos(d*x + c))^(1/3), 
x)
 
3.4.53.9 Mupad [F(-1)]

Timed out. \[ \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\sqrt [3]{b \cos (c+d x)}} \, dx=\int \frac {C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A}{{\left (b\,\cos \left (c+d\,x\right )\right )}^{1/3}} \,d x \]

input
int((A + B*cos(c + d*x) + C*cos(c + d*x)^2)/(b*cos(c + d*x))^(1/3),x)
 
output
int((A + B*cos(c + d*x) + C*cos(c + d*x)^2)/(b*cos(c + d*x))^(1/3), x)